package com.cn.hnust.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cn.hnust.pojo.Message;
import com.cn.hnust.util.Page;

public interface MessageMapper {

	  int deleteByPrimaryKey(int id);

	    int insert(Message message);

	    int insertSelective(Message record);

	    Message selectByPrimaryKey(int id);
	    
	    List<Message> getUsers();

	    int updateByPrimaryKeySelective(Message record);

	    int updateByPrimaryKey(Message record);
	    
	    Message getUser(String message_name);
	    
	    int getCounts(String message_name);
	    
	    List<Message> selectPersons(@Param("message_name")String message_name,@Param("page")Page page);
	    
	    List<Message> queryAllRecord(@Param("page")Page page);
	    
	    int getCount();
	    
	    int getCountmh(String message_name);
}
